import request from '@/utils/request'

// 查询目标项管理记录列表
export function listZrsMbManageGoal(query) {
  return request({
    url: '/business/ZrsMbManageGoal/list',
    method: 'get',
    params: query
  })
}
export function listZrsMbManageGoalZb(query) {
  return request({
    url: '/business/ZrsMbManageGoal/listData',
    method: 'get',
    params: query
  })
}
// 查询目标项管理记录详细
export function getZrsMbManageGoal(mbGoalId) {
  return request({
    url: '/business/ZrsMbManageGoal/' + mbGoalId,
    method: 'get'
  })
}

// 查询目标项管理记录列表
export function getZrsMbManageGoalSelZb(data) {
  return request({
    url: '/business/ZrsMbManageGoal/getZrsMbManageGoalSelZb',
    method: 'post',
    data: data
  })
}
export function getZrsMbManageKhUserSel(data) {
  return request({
    url: '/business/ZrsMbManage/getZrsMbManageSelKhUser',
    method: 'post',
    data: data
  })
}
export function updateZrsMbManageShUserToSaveUser(data){
  return request({
    url: '/business/ZrsMbManage/updateZrsMbManageShUserToSaveUser',
    method: 'post',
    data: data
  })
}
export function getZrsMbManageKhDeptSel(data){
  return request({
    url: '/business/ZrsMbManage/getZrsMbManageSelKhDept',
    method: 'post',
    data: data
  })
}

export function updateZrsMbManageShDeptToSaveDept(data){
  return request({
    url: '/business/ZrsMbManage/updateZrsMbManageShDeptToSaveDept',
    method: 'post',
    data: data
  })
}
// 新增目标项管理记录
export function addZrsMbManageGoal(data) {
  return request({
    url: '/business/ZrsMbManageGoal',
    method: 'post',
    data: data
  })
}
export function updateZrsMbManageGoalToSaveZb(data){
  return request({
    url: '/business/ZrsMbManageZb/updateZrsMbManageGoalToSaveZb',
    method: 'post',
    data: data
  })
}
// 修改目标项管理记录
export function updateZrsMbManageGoal(data) {
  return request({
    url: '/business/ZrsMbManageGoal',
    method: 'put',
    data: data
  })
}
// 修改目标项管理记录
export function updateZrsMbGlxZb(data) {
  return request({
    url: '/business/ZrsMbManageZb/editZrsMbManageZb',
    method: 'post',
    data: data
  })
}
// 获取模版指标管理项
export function getMbZbmanage(data){
  return request({
    url: '/business/ZrsMbManageZb/getMbZbmanage',
    method: 'post',
    data: data
  })
}
export function updateMbZbmanage(data){
  return request({
    url: '/business/ZrsMbManageZb/updateMbZbmanage',
    method: 'post',
    data: data
  })
}
export function addMbZbmanage(data){
  return request({
    url: '/business/ZrsMbManageZb/addMbZbmanage',
    method: 'post',
    data: data
  })
}
// 删除目标项管理记录
export function delZrsMbManageGoal(mbGoalId) {
  return request({
    url: '/business/ZrsMbManageGoal/' + mbGoalId,
    method: 'delete'
  })
}
